<!-- @format -->
<script setup>
	import MyDialog from './components/MyDialog.vue'
</script>

<template>
	<MyDialog>
		<template #header="obj">
			<h4>登录</h4>
			<span>aaa = {{ obj.aaa }}</span>
			<span>bbb = {{ obj.bbb }}</span>
		</template>
		<template #body="obj">
			<!-- 默认接收的数据 obj 是个空对象  -->
			账号:
			<input
				type="text"
				v-model="obj.account" /><br /><br />
			密码:
			<input
				type="password"
				v-model="obj.password" /><br /><br />
		</template>
	</MyDialog>
</template>

<style scoped></style>
